import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '@/views/index.vue'
import dialog from '@/views/dialog.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: home
  },
  {
    path: '*',
    component: home
  },
  {
    path: '/dialog',
    component:dialog
  }
]

const router = new VueRouter({
  routes
})

export default router
